home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
query_ip_number
< prev
next >
Wrap
Text File
|
2001-04-06
|
676b
|
23 lines
SYNOPSIS
string query_ip_number(object ob)
string query_ip_number(mixed & ob)
DESCRIPTION
Give the ip-number for the current user or the optional
argument ob.
If ob is given as reference (and it must be a valid object then),
it will upon return be set to the struct sockaddr_in of the queried
object, represented by an array of integers, one integer per
address byte:
ob[0.. 1]: sin_family
ob[2.. 3]: sin_port
ob[4.. 7]: sin_addr
ob[8..15]: undefined.
HISTORY
The return of the struct sockaddr_in was introduced in 3.2.1@81.
SEE ALSO
query_ip_name(E)